#!/bin/bash

# ***************************************************************************
# * 
# * @file:build_jwt_demo.sh 
# * @author:ebayboy@163.com 
# * @date:2019-12-04 01:53 
# * @version 1.0  
# * @description: Shell script 
# * @Copyright (c)  all right reserved 
#* 
#**************************************************************************/ 

#!/bin/bash 

#main-auth.c  main-gen.c

#yum install openssl-devel
#yum install jansson
#yum install jansson-devel

#build libjwt: mkdir build && cd build && cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local/jwt  && make install

gcc -o auth main-auth.c -I/usr/local/libjwt/include -L/usr/local/libjwt/lib -ljwt -lssl -ljansson
gcc -o gen main-gen.c -I/usr/local/libjwt/include -L/usr/local/libjwt/lib -ljwt -lssl -ljansson

exit 0

